<?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Mon,26 Jul 1997 05:00:00 GMT");

include("mod/usuarios/psa_cookie.inc");
include("mod/usuarios/usuarios.php");
include("parametros.inc");
 ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo $psa_titulo ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</style>
<link rel="stylesheet" type="text/css" media="screen" href="css/psa.css" />
<style type="text/css">
<!--
form {
        margin: 0px;
}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="5" bgcolor="#E9E9E9"> </td>
              </tr>
              <tr>
                <td height="5" bgcolor="#006699"> <table width="100%" height="16" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="200px" height="16"><div align="left"><font size="1"><strong><font face="Arial, Helvetica, sans-serif">&nbsp;<font color="#FFFFFF">
                      <script LANGUAGE="JavaScript">
<!-- COMIENZO
Stamp = new Date();
year = Stamp.getYear();
if (year < 2000) year = 1900 + year;
document.write( Stamp.getDate()+"/"+(Stamp.getMonth() + 1)+"/"+ year );
// FIN -->
</script>
                      </font></font></strong></font></div></td>
                      <td width="20px" height="16" background="img/bt3.gif" bgcolor="#CCCCCC"><font size="2" face="Arial, Helvetica, sans-serif">&nbsp;</font></td>
                      <td height="16" bgcolor="#CCCCCC" align="right"><font size="2" face="Arial, Helvetica, sans-serif"><b><a href="mod/usuarios/check.php">Salir</a></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td height="24" valign="middle" bgcolor="#006699"><div align="center">
                        <strong><font color="#FFFFFF" size="5" face="Arial, Helvetica, sans-serif"><?php echo $psa_titulo ?>
                        </font></strong></div>
                </td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="18" bgcolor="#CCCCCC"><font size="2" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;&nbsp;
                         <font color="#006699">
                            <a href=<?php echo "\"$psa_direccion\"" ?>>Inicio</a></font>
                         </font>
                      </td>
                      <td width="20" height="18" background="img/bt2.gif" bgcolor="#CCCCCC"></td>
                      <td width="200" height="18" bgcolor="#006699"><div align="center"><strong><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;&nbsp;<?php echo $psa_direccion ?></font></strong></div></td>
                    </tr>
                    <tr bgcolor="#E9E9E9">
                      <td height="5" colspan="3"></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><table width="100%" border="0" cellspacing="5" cellpadding="0">
              <tr>
                <td width="160" valign="top">
                <?php include("mod/menu/psa_menu.php");?>
                </td>
                <td valign="top">
                        <div style="overflow:auto;height:470px;">
                                <font size="2">
                                <?php

                                if (isset($_REQUEST["psa_modulo"])){
                                   @include($_REQUEST["psa_modulo"]);
                                   if (!@file($_REQUEST["psa_modulo"])){
                                      echo "<center><font size=5><U>No habilitado por el momento</U></font></center>\n";
                                      echo '<br><br><br><center><img src="img/Logo.jpg" border=0></center><br><br><br>'."\n";
                                      echo "<center><font size=5><U>No habilitado por el momento</U></font></center>\n";
                                   }
                                } else {
                                   echo '<br><br><center><img src="img/Logo.jpg"  border=0></center>'."\n";
                                }
                                ?>
                                </font>
                        </div>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td bgcolor="#CCCCCC">
            <center><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <img src="img/MiniFooterLogo.jpg"  border=0><br>&nbsp;<b><?php echo $psa_compania; ?></b>&nbsp;<?php echo $psa_ano; ?>
            <?php echo $psa_titulo ?></center>
          </td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
